<a class="btn-to-top">
    <i class="fa fa-angle-up"></i>
</a>
<script src="/js/vendor/jquery.min.js"></script>
<script src="/js/vendor/bootstrap.min.js"></script>
<script src="/js/vendor/video.js"></script>

<!-- 使低版本IE支持placeholder -->
<!--[if lt IE 9]>
<script src="/js/vendor/jquery.placeholder.min.js"></script>
<script >
    $('input, textarea').placeholder();
</script>
<![endif]-->
<script>
    $(function() {

        //回到顶部
        $(window).scroll(function() {
            if ($(window).scrollTop() > 600)
                $('a.btn-to-top').show();
            else
                $('a.btn-to-top').hide();
        });
        $('a.btn-to-top').click(function() {
            $('html, body').animate({scrollTop: 0}, 600);
        });
    })
</script>
